package com.kylin.common.elasticsearch.configure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * elasticsearch 配置
 *
 * @author wuhao
 * @version 1.0 - 2021-03-11
 */
@ConfigurationProperties("spring.data.elastic")
public class ElasticSearchProperties {

    private String hostAndPort;

    private String host;
    private int port;

    private boolean isAuth;
    private String username;
    private String password;

    public String getHostAndPort() {
        return hostAndPort;
    }

    public void setHostAndPort(String hostAndPort) {
        this.hostAndPort = hostAndPort;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public boolean isAuth() {
        return isAuth;
    }

    public void setAuth(boolean auth) {
        isAuth = auth;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
